package cn.peach.hrm.feign.client;

import cn.peach.hrm.doc.CourseDoc;
import cn.peach.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author you
 * @create 2021/11/28 16:21
 */
@RequestMapping("/course")
@FeignClient(value = "service-search",fallbackFactory = CourseESFeignClientFallbackFactory.class)
public interface CourseESFeignClient {
    @RequestMapping("/save")
    AjaxResult save(@RequestBody CourseDoc courseDoc);
}
